<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加员工</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">
</head>
<body>
<H2 align="center">添加员工</H2>
<input type="text" id="che" value="${check}" hidden>
<script>
    var elementById = document.getElementById("che");
    if (elementById.value == "error") {
        alert("员工编号重复");
    }
</script>
<br>
<div class="larry-personal" align="center">
    <div class="layui-inline">
        <form class="layui-form" action="addemp">
            <table border="0px" width="1200px">
                <tr>
                    <td>
                        <label class="layui-form-label">员工编号</label>
                        <div class="layui-input-inline">
                            <input name="empid" required lay-verify="required" placeholder="编号以A开头"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-inline">
                            <input name="empname" required lay-verify="required" placeholder="请输入你的姓名"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">性别</label>
                        <input type="radio" name="sex" value="男" title="男">
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                class="layui-anim layui-icon"></i><span>男</span></div>
                        <input type="radio" name="sex" value="女" title="女">
                        <div class="layui-unselect layui-form-radio"><i
                                class="layui-anim layui-icon"></i><span>女</span></div>

                    </td>
                    <td>
                        <label class="layui-form-label">婚姻</label>
                        <input type="radio" name="maritalstatus" value="已婚" title="已婚">
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                class="layui-anim layui-icon"></i><span>已婚</span></div>
                        <input type="radio" name="maritalstatus" value="未婚" title="未婚">
                        <div class="layui-unselect layui-form-radio"><i
                                class="layui-anim layui-icon"></i><span>未婚</span></div>
                    </td>
                    <td>
                        <label class="layui-form-label" hidden>状态</label>
                        <div class="layui-input-inline">
                            <input disabled name="nation" value="在职" class="layui-input search_input" type="text"
                                   hidden>
                            <input name="isStatus" value="1" placeholder="" class="layui-input search_input" type="text"
                                   hidden>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">曾用名</label>
                        <div class="layui-input-inline">
                            <input name="nameusedbefore" required lay-verify="required" placeholder="请输入你的曾用名"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">英文名</label>
                        <div class="layui-input-inline">
                            <input name="englishname" required lay-verify="required" placeholder="请输入你的英文名字"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">出生日期</label>
                        <div class="layui-inline">
                            <input type="date" required lay-verify="required" placeholder="例:1949-10-1"
                                   class="layui-input" name="birthday">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">身份证号</label>
                        <div class="layui-input-inline">
                            <input name="idcard" required lay-verify="required" placeholder="例:420607****111"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">籍贯</label>
                        <div class="layui-input-inline">
                            <input name="natives" required lay-verify="required" placeholder="例:湖北省襄阳市"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">民族</label>
                        <div class="layui-input-inline">
                            <input name="nation" required lay-verify="required" placeholder="例:傣族"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">政治面貌</label>
                        <div class="layui-input-inline">
                            <input name="poleticalstatus" required lay-verify="required" placeholder="例:党员"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">宗教信仰</label>
                        <div class="layui-input-inline">
                            <input name="religiousbelief" required lay-verify="required" placeholder="例:伊斯兰教"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">户口所在地</label>
                        <div class="layui-input-inline">
                            <input name="place" required lay-verify="required" placeholder="例:湖北省襄阳市张湾镇"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">健康状况</label>
                        <div class="layui-input-inline">
                            <input name="healthcondition" required lay-verify="required" placeholder="例:上火"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">移动电话</label>
                        <div class="layui-input-inline">
                            <input name="mobilephone" required lay-verify="required" placeholder="例:1347***111"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">办公电话</label>
                        <div class="layui-input-inline">
                            <input name="officephone" required lay-verify="required" placeholder="例:0710-1234567"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>

                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">工资账号</label>
                        <div class="layui-input-inline">
                            <input name="wagesaccount" required lay-verify="required" placeholder="例:12345***1234"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">社保账号</label>
                        <div class="layui-input-inline">
                            <input name="socialsecuritynumbers" required lay-verify="required"
                                   placeholder="例:12232***1234" class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">参加工作时间</label>
                        <div class="layui-input-inline">
                            <input name="partworktime" required lay-verify="required" placeholder="例:2015-10-1"
                                   class="layui-input search_input" type="date">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">进入单位时间</label>
                        <div class="layui-input-inline">
                            <input name="entertime" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="date">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">职务</label>
                        <div class="layui-input-inline">
                            <select name="ductId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${tl}" var="tl">
                                    <option value="${tl.id}">${tl.zname}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </td>

                    <td>
                        <label class="layui-form-label">学历</label>
                        <div class="layui-input-inline">
                            <select name="education" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <option value="小学">小学</option>
                                <option value="初中">初中</option>
                                <option value="高中">高中</option>
                                <option value="大学">大学</option>
                                <option value="高等">高等</option>
                            </select>
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">职称</label>
                        <div class="layui-input-inline">
                            <select name="jobId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${jl}" var="ja">
                                    <option value="${ja.id}">${ja.name}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">部门</label>
                        <div class="layui-input-inline">
                            <select name="departId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${dl}" var="dl">
                                    <option value="${dl.id}">${dl.dname}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </td>

                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">住宅电话</label>
                        <div class="layui-input-inline">
                            <input name="homephone" required lay-verify="required" placeholder="例:0710-1234567"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>

                </tr>
                <tr>
                    <td colspan="4">
                        <div class="layui-inline" align="center">
                            <input type="submit" class="layui-btn" value="确认添加"/>
                        </div>
                    </td>
                </tr>
            </table>
        </form>

        <script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/newsadd.js"></script>
    </div>
</div>
</body>
</html>

